; filelog - log all actions performed on any files
; copyright abandoned 2000,  Kiwi Software (Luke Graham)
; Version 0.0.3,  last updated 23/02/2000 (lrg)

; OS_Args entry point look up tables

 AREA	|osArgsData|, DATA, READONLY

osArgsCTableStartOffset DCD	osArgsCTableStartOffset
osArgsConditionTable	DCD	_osArgs0
			DCD	_osArgs1
			DCD	_osArgs2
			DCD	_osArgs3
			DCD	_osArgs4
			DCD	_osArgs5
			DCD	_osArgs6
			DCD	_osArgs7
			DCD	_osArgs8
			DCD	_osArgs254
			DCD	_osArgs255

_osArgs0		DCB	"OS_Args called - Reason code 0   (Read pointer/FS)",0
			ALIGN

_osArgs1		DCB	"OS_Args called - Reason code 1   (Write pointer)",0
			ALIGN

_osArgs2		DCB	"OS_Args called - Reason code 2   (Read extent)",0
			ALIGN

_osArgs3		DCB	"OS_Args called - Reason code 3   (Write extent)",0
			ALIGN

_osArgs4		DCB	"OS_Args called - Reason code 4   (Read allocated size)",0
			ALIGN

_osArgs5		DCB	"OS_Args called - Reason code 5   (Read EOF status)",0
			ALIGN

_osArgs6		DCB	"OS_Args called - Reason code 6   (Reserve space)",0
			ALIGN

_osArgs7		DCB	"OS_Args called - Reason code 7   (Read pathname of open file)",0
			ALIGN

_osArgs8		DCB	"OS_Args called - Reason code 8   (Inform of changed image stamp)",0
			ALIGN

_osArgs254		DCB	"OS_Args called - Reason code 254 (Read info on file handle)",0
			ALIGN

_osArgs255		DCB	"OS_Args called - Reason code 255 (Flush file(s))",0
			ALIGN

argVUnKnownS		DCB	"OS_Args called with unknown reason code (%7d)",0
			ALIGN

argVHandleS		DCB	"file handle (r1) = 0x%7x",0
			ALIGN

osArgsRTableStartOffset DCD	osArgsRTableStartOffset
osArgsRegsTable	DCD	-1
			DCD	ArgsV1S
			DCD	-1
			DCD	ArgsV3S
			DCD	-1
			DCD	-1
			DCD	ArgsV6S
			DCD	ArgsV7S
			DCD	ArgsV8S
			DCD	-1
			DCD	-1

ArgsV1S			DCB	"new pointer (r2) = 0x%8x",0
			ALIGN

ArgsV3S			DCB	"new extent (r2) = 0x%8x",0
			ALIGN

ArgsV6S			DCB	"size to ensure (r2) = 0x%8x",0
			ALIGN

ArgsV7S			DCB	"buffer address (r2) = 0x%8x  length of buffer (r5) = 0x%5x",0
			ALIGN

ArgsV8S			DCB	"new image stamp (r2) = 0x%8x",0
			ALIGN

 END
